package org.aurora.one.noticeAndWait_2;

import javax.annotation.Resource;

/**
 * @author : Aurora
 * @date : 2024/1/21 20:54
 * @description wait()
 */
public class WaitFunction {

    public static class LockObject {
        public synchronized void getLockObj(){

        }

    }

    public void getMonitorLockOne(){
        LockObject lockObj = new LockObject();
        synchronized (lockObj){
//            while (条件){
//                wait();
//            }
        }
    }

    public void  getMonitorLockTwo(){
        LockObject lockObj = new LockObject();
        lockObj.getLockObj();
    }



}
